package com.bort.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bort.system.model.Cart;
import com.bort.system.model.Goods;
import com.bort.system.model.vo.GoodsVo;
import com.bort.system.utils.Result;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface GoodsService extends IService<Goods> {

    Result<Page<GoodsVo>> getGoodsList(Page<GoodsVo> pager, Map<String, Object> map);

    boolean addGoods(Goods goods);

    boolean updateGoods(Goods goods);

    boolean deleteGoods(Integer id);

    Result upload(MultipartFile file);

    List<Goods> loadGoodsByCategoryId(Integer id);

}
